import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  /* config options here */
  // 代理
   rewrites:    process.env.NODE_ENV === 'development'
  ? async () => {
      return [
        {
          source: '/instrument/:path*',
          destination: `${process.env.REACT_APP_API_URL}/instrument/:path*`
        }
      ];
    }
  : undefined,
};

export default nextConfig;
